﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pahan.McuFusion.Common
{
    public abstract class MemoryClassInfoSurrogateBase<T> : BuilderBase<T>
        where T: MemoryClassInfo
    {
        /// <summary>
        /// Memory class name.
        /// </summary>
        public String Name
        {
            get;
            set;
        }

        /// <summary>
        /// The size of the memory.
        /// </summary>
        public int MemorySize
        {
            get;
            set;
        }

        /// <summary>
        /// The size of the page.
        /// </summary>
        public int PageSize
        {
            get;
            set;
        }

        /// <summary>
        /// The content of the empty memory.
        /// </summary>
        public byte EmptyValue
        {
            get;
            set;
        }

        /// <summary>
        /// Gets whether the memory can be read.
        /// </summary>
        public bool CanRead
        {
            get;
            set;
        }

        /// <summary>
        /// Gets whether the memory can be written.
        /// </summary>
        public bool CanWrite
        {
            get;
            set;
        }

        /// <summary>
        /// Gets whether the memory can be erased.
        /// </summary>
        public bool CanErase
        {
            get;
            set;
        }
    }
}
